package com.info.zhiduoduo.repository.dto.company;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableField;
import com.info.zhiduoduo.common.excelconverter.CompanyRechargeStateConverter;

import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class CompanyRechargeDto {

	@DateTimeFormat("yyyy-MM-dd hh:mm:ss")
	@ExcelProperty("创建时间")
	private Date createtime;
	@ExcelIgnore
	private Integer rechargeid;
	@ExcelProperty("充值流水号")
	private String rechargeno;
	@ExcelIgnore
	private Integer compid;
	@ExcelProperty("企业名称")
	private String compname;
	@ExcelProperty("充值金额")
	private BigDecimal amount;
	@ExcelProperty("电子回单单号")
	private String receiptno;
	@ExcelIgnore
	private String receiptimg;
	@ExcelProperty(value = "状态", converter = CompanyRechargeStateConverter.class)
	private int state;
	@ExcelProperty("充值单号")
	private String remark;

	@ExcelProperty("创建操作员")
	private Integer createAdminid;

	@ExcelProperty("主体ID")
	private Integer subjectId;
	@ExcelProperty("主体编码")
	private String subjectCode;

	@ExcelProperty("修改操作员")
	private Integer updateAdminid;

	@ApiModelProperty("支付方式id(表zdd_payment)")
	@ExcelIgnore
	private Integer payId;

	@ApiModelProperty("支付方式名称")
	@ExcelProperty("支付方式名称")
	private String payName;

}
